import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/Index.vue'

import Goods from '../components/goods/goods.vue'
import Ratings from '../components/ratings/ratings.vue'
import Seller from '../components/seller/seller.vue'

Vue.use(Router)

const routes = [
  { path: '/', name: 'Index', component: Index, redirect: '/goods' },
  { path: '/goods', name: 'Goods', component: Goods },
  { path: '/ratings', name: 'Ratings', component: Ratings },
  { path: '/seller', name: 'Seller', component: Seller }
]

export default new Router({
  routes: routes
})
